<?php

namespace App\Constants;

use Hyperf\Constants\AbstractConstants;
use Hyperf\Constants\Annotation\Constants;

/**
 * 服务器列表，对应的区分数据库的列表，每当开启一个全新的数据库，需要在这里新增一个配置
 */
#[Constants]
class ServerList extends AbstractConstants {

    // 服务器列表
    //code 等于 game_version表的kong_code,也就是kong中service的name
    //name 等于 游戏服名称
    public const YZTT_LIST = [
        1 => [
            'name' => '肆狼DNF-测试服',
            'code' => '616379f899e8d30af12bd4f157e925ea' //md5 (sldnf-api-test-01)
        ],
        2 => [
            'name' => '肆狼DNF-生产服',
            'code' => 'f06d86ae62ef1e5d9376ace901ed0a2c' //md5 (sldnf-api-pro)
        ],
        4 => [
            'name' => '肆狼DNF-停服',
            'code' => 'e0e9edba54e11eb3b527269f74bc99f4'  // md5(sldnf-api-close)
        ],
    ];

    public const YZTT_LIST_SHOW = [
        1 => [
            'name' => '肆狼DNF-测试服/版署服',
            'code' => '616379f899e8d30af12bd4f157e925ea' //md5 (sldnf-api-test-01)
        ],
        2 => [
            'name' => '肆狼DNF-生产环境（魂斗1服）',
            'code' => 'f06d86ae62ef1e5d9376ace901ed0a2c' //md5 (sldnf-api-pro)
        ],
//        4 => [
//            'name' => '肆狼DNF-停服',
//            'code' => 'e0e9edba54e11eb3b527269f74bc99f4'  // md5(sldnf-api-close)
//        ],
    ];

    public const ADMIN_BIND_GAMES = [
        '616379f899e8d30af12bd4f157e925ea' => [
            '651da2028476d3e669f892fba5014ebe',//测试服
            '1200c5c03478dd50cef65f25b1c2646a',//版署服
        ],
        'f06d86ae62ef1e5d9376ace901ed0a2c' => [
            'c0e4770b0ac5e048029bf343be31381c',//线上1服
            '5b521c3bda7e831cb852b7dd63a3b285',//线上2服
            'f41f10843f980a38e1e9c0cf8bdaeac3',//线上3服
        ],
    ];
}